﻿
using ApiDoc.DAL;
using ApiDoc.Models;
using System;
using System.Collections.Generic;

namespace ApiDoc.BLL
{
    //public class InterfaceBLL : BaseBLL
    //{
    //    private readonly InterfaceDAL infterfaceDAL;
    //    private readonly ParamDAL paramDAL;
    //    private readonly FlowStepDAL flowStepDAL;

    //    public InterfaceBLL(IInterfaceDAL infterfaceDAL,
    //                        ParamDAL paramDAL,
    //                        FlowStepDAL flowStepDAL)
    //    {
    //        this.infterfaceDAL = infterfaceDAL;
    //        this.paramDAL = paramDAL;
    //        this.flowStepDAL = flowStepDAL;
    //    }

    //    public ApiModel GetInterfaceModel(int SN)
    //    {

    //        ApiModel model = this.infterfaceDAL.Get<ApiModel>(SN); 
    //        model.Steps = this.flowStepDAL.QueryOfParam(model.SN);

    //        //接口参数
    //        string auth = "";
    //        foreach (ParamModel param in this.paramDAL.Query(model.SN))
    //        {
    //            if (auth != "")
    //            {
    //                auth += "_";
    //            }
    //            auth += param.ParamName;
    //        }
    //        auth = auth.ToLower();
    //        model.Auth = auth;
    //        return model;
    //    }
 
        
    //}
}
